package javase.jmx.timer;

import javax.management.Notification;
import javax.management.NotificationFilter;

public class TimerNotificationFilter implements NotificationFilter {
	private static final long serialVersionUID = -8594462600023541387L;
	public static final String ALLOWED_NOTIFICATION_TYPE = "com.notification.second";

	@Override
	public boolean isNotificationEnabled(Notification notification) {
		return ALLOWED_NOTIFICATION_TYPE.equals(notification.getType());
	}

}
